//
//  AppCoordinator.swift
//  Checked
//
//  Created by Shinolr on 1/8/19.
//  Copyright © 2019 shinolr_go. All rights reserved.
//

import UIKit

class AppCoordinator {
    
    var rootViewController: CHRootViewController?
    var navigationController: UINavigationController?
    var window: UIWindow?
    
    init(window: UIWindow) {
        self.window = window
    }
    
    func start() {
        showMainView()
    }
    
//    func showMainView(with window: UIWindow) {
//        navigationController = UINavigationController(rootViewController: CHTabBarController())
//        window.rootViewController = navigationController
//    }
    
    func showMainView() {
        rootViewController = CHRootViewController()
        window?.rootViewController = rootViewController
        window?.makeKeyAndVisible()
        navigationController = rootViewController?.childNavitationController
    }

}

//extension AppCoordinator: UIGestureRecognizerDelegate {
//    
//}
